package com.lx.web.servlet;


import com.lx.bean.Label;
import com.lx.service.LabelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
@RequestMapping("/label")
public class LabelController {

    @Autowired
    LabelService service;

    @RequestMapping("/findlabelbyfbid")
    @ResponseBody
    public List<Label> findLabelByFbId(Integer id) {
        return service.findLabelByFbId(id);
    }

}
